package com.zhinong.controller.user;

import com.zhinong.entity.Order;
import com.zhinong.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/products")
@Slf4j
@Api(tags = "商城相关接口")
public class ShopController {


    public Result<Order> add(@RequestBody Order order){
        log.info("新增订单：{}",order);

        return Result.success(order);

    }
}
